/**
 * 权限用枚举
 */
const authority = {
  /**
   * 系统菜单权限点
   */
  SYS_MENU_ADD: 'sys:menu:add',
  SYS_MENU_DEL: 'sys:menu:del',
  SYS_MENU_EDIT: 'sys:menu:edit',
  SYS_MENU_GET: 'sys:menu:get',

  /**
   * 角色的权限
   */
  SYS_ROLE_ADD: 'sys:role:add',
  SYS_ROLE_DEL: 'sys:role:del',
  SYS_ROLE_EDIT: 'sys:role:edit',
  SYS_ROLE_GET: 'sys:role:get',
  SYS_ROLE_PAGE: 'sys:role:page',
  SYS_ROLE_PERM: 'sys:role:perm',
  /**
   * 日志
   */
  SYS_LOG_PAGE: 'sys:log:page',
  SYS_LOG_DEL: 'sys:log:del',

  /**
   * 登录日志
   */
  SYS_LOGLOGIN_PAGE: 'sys:loglogin:page',
  SYS_LOGLOGIN_GET: 'sys:loglogin:get',
  SYS_LOGLOGIN_EDIT: 'sys:loglogin:edit',
  SYS_LOGLOGIN_DEL: 'sys:loglogin:del',
  /**
   * 字典权限
   */
  SYS_DICT_GET: 'sys:dict:get',
  SYS_DICT_PAGE: 'sys:dict:page',
  SYS_DICT_DEL: 'sys:dict:del',
  SYS_DICT_EDIT: 'sys:dict:edit',
  SYS_DICT_ADD: 'sys:dict:add',

  /**
   * 机构权限
   */
  SYS_ORG_ADD: 'sys:org:add',
  SYS_ORG_GET: 'sys:org:get',
  SYS_ORG_DEL: 'sys:org:del',
  SYS_ORG_EDIT: 'sys:org:edit',

  /**
   * 用户权限
   */
  SYS_USER_PAGE: 'sys:user:page',
  SYS_USER_GET: 'sys:user:get',
  SYS_USER_DEL: 'sys:user:del',
  SYS_USER_ADD: 'sys:user:add',
  SYS_USER_EDIT: 'sys:user:edit',
  SYS_USER_PASSWORD: 'sys:user:password',

  //  Mall

  /**
   * 商城用户
   */
  MALL_USERINFO_PAGE: 'mall:userinfo:page',
  MALL_USERINFO_DEL: 'mall:userinfo:del',
  MALL_USERINFO_ADD: 'mall:userinfo:add',
  MALL_USERINFO_EDIT: 'mall:userinfo:edit',

  /**
   * 标准商品
   */
  MALL_GOODSSPU_PAGE: 'mall:goodsspu:page',
  MALL_GOODSSPU_DEL: 'mall:goodsspu:del',
  MALL_GOODSSPU_ADD: 'mall:goodsspu:add',
  MALL_GOODSSPU_EDIT: 'mall:goodsspu:edit',

  /**
   * 商品规格
   */
  MALL_GOODSSPEC_PAGE: 'mall:goodsspec:page',
  MALL_GOODSSPEC_DEL: 'mall:goodsspec:del',
  MALL_GOODSSPEC_ADD: 'mall:goodsspec:add',
  MALL_GOODSSPEC_EDIT: 'mall:goodsspec:edit',

  /**
   * 品类
   */
  MALL_GOODSCATEGORY_PAGE: 'mall:goodscategory:page',
  MALL_GOODSCATEGORY_DEL: 'mall:goodscategory:del',
  MALL_GOODSCATEGORY_ADD: 'mall:goodscategory:add',
  MALL_GOODSCATEGORY_EDIT: 'mall:goodscategory:edit',

  /**
   * 保障服务
   */
  MALL_ENSURESERVICE_PAGE: 'mall:ensureservice:page',
  MALL_ENSURESERVICE_DEL: 'mall:ensureservice:del',
  MALL_ENSURESERVICE_ADD: 'mall:ensureservice:add',
  MALL_ENSURESERVICE_EDIT: 'mall:ensureservice:edit',

  /**
   * 商品评价
   */
  MALL_GOODSEVALUATION_PAGE: 'mall:goodsevaluation:page',
  MALL_GOODSEVALUATION_ADD: 'mall:goodsevaluation:add',
  MALL_GOODSEVALUATION_EDIT: 'mall:goodsevaluation:edit',
  MALL_GOODSEVALUATION_DEL: 'mall:goodsevaluation:del',

  /**
   * 订单
   */
  MALL_ORDERINFO_PAGE: 'mall:orderinfo:page',
  MALL_ORDERINFO_ADD: 'mall:orderinfo:add',
  MALL_ORDERINFO_EDIT: 'mall:orderinfo:edit',
  MALL_ORDERINFO_DEL: 'mall:orderinfo:del',

  /**
   * 店铺
   */

  MALL_SHOPINFO_PAGE: 'mall:shopinfo:page',
  MALL_SHOPINFO_ADD: 'mall:shopinfo:add',
  MALL_SHOPINFO_EDIT: 'mall:shopinfo:edit',
  MALL_SHOPINFO_DEL: 'mall:shopinfo:del',
};

export default authority;
